package afss.freesky.data.conn;

import java.sql.DriverManager;

public class DBDerbyBean extends DBConnBean {
	private static final long serialVersionUID = 1484933289696652492L;
	public static String URL = "jdbc:derby:sabdb;create=true";
	public static String USER = "sa";
	public static String PASSWORD = "amei";

	@Override
	public void getConnection() {
		try {
			Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
			conn = DriverManager.getConnection(URL, USER, PASSWORD);
		} catch (java.lang.ClassNotFoundException ce) {
			logger.error("Get Connection error:", ce);
		} catch (java.sql.SQLException se) {
			logger.error("Get Connection error:", se);
		} catch (Exception e) {
			logger.error("Get Connection error:", e);
		}
	}

}
